package com.liuceng.zen.pojo.domain;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

import lombok.Data;

@Data
public class RptFrontCampaignDaily extends BaseDomain {
  public static final Integer SITESET_TYPE_PC = 0;
  public static final Integer SITESET_TYPE_MOBILE = 1;

  private Integer id;
  private Integer memberId;
  private String cname;
  private BigDecimal cost;
  private Integer viewCount;
  private Integer clickCount;
  private Integer status;
  private Date rptDate;
  private Integer rptYear;
  private Integer rptMonth;
  private Integer rptDay;
  private Date createdAt;
  private Integer frontCampaignId;
  private String rptDateToString;
  private String clickRate;
  private String avgCost;
  private String avgCostView;
  //

  public String getRptDateToString() {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    if (this.rptDate == null) {
      return "";
    } else {
      return sdf.format(this.rptDate);
    }
  }
}
